<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<css href="__PUBLIC__/Wife/css/admin.css"/>
<js href="__PUBLIC__/Wife/js/jquery-1.7.1.js"/>
  <script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
<script>
$(function(){
	$('[name=news_class]').change(function(){
		var value = $(this).val();
		if (value == '其他'){
			$(this).after('<input type="text" name="news_class"/>');
		}else{
			$('input[name=news_class]').remove();
		}
	})
})
</script>
<literal>
<script type="text/javascript">
$(pageInit);
var editor;
function pageInit()
{
	var url = $('#upurl').get(0).value;
	$.extend(xheditor.settings,{shortcuts:{'ctrl+enter':submitForm}});
	editor = $('#elm6').xheditor({height:400,upLinkUrl:url,upLinkExt:"zip,rar,txt",upImgUrl:url,upImgExt:"jpg,jpeg,gif,png",onUpload:''});
}

function submitForm(){
	$('#myform').submit();
}
</script>
</literal>
<style type="text/css">
input.inp {color:#3366cc; padding-left:4px; font-size:12px;}
input.noedit{background:#fff; color:#888}
td{ border:1px solid #EEF8F9}
</style>
</head>
<body>
<div id="main">
	<div class="title">日志管理</div>
	<div class="content">
<form action="__SELF__" method="post" enctype="multipart/form-data">
  <table width="98%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" colspan="2" class="tit">编缉日志</td>
        </tr>
      <tr>
        <td width="10%" height="30" align="right">所属分类：</td>
        <td width="90%" height="30" align="left">
  <select name="type_id">
    <?php foreach($data as $v):?>
  		<option value="<?php echo $v['id']?>"><?php echo str_repeat('&nbsp;',$v['lev']*2),$v['catname']?></option>
  	<?php endforeach;?>
	</select></td>
      </tr>
      <tr>
        <td height="30" align="right">文章标题：</td>
        <td height="30" align="left"><input type="text" name="title" class="inp"/><input type="checkbox" name="is_bold" value="1"/>加粗显示</td>
      </tr>
      <tr>
        <td height="30" align="right">作者：</td>
        <td height="30" align="left"><input name="author" type="text" class="inp"/></td>
      </tr>
      <tr>
        <td height="30" align="right">关键字：</td>
        <td height="30" align="left"><input type="text" name="keywords" class="inp"/></td>
      </tr>
      <tr>
        <td height="30" align="right">简单描述：</td>
        <td height="30" align="left"><input type="text" name="remark" class="inp"/></td>
      </tr>
      <tr>
        <td height="30" align="right">文章缩略图：</td>
        <td height="38" align="left"><input type="file" name="arc_pic" class="inp"/><br /> <span style='color:red'>图片大小：450px * 435px</span></td>
      </tr>
      <tr>
        <td height="30" align="right" valign="top">文章内容：</td>
        <td height="30" align="left" style="height:20px; line-height:20px;"><textarea id="content" name="content"></textarea></td>
      </tr>
      <tr>
        <td height="30" align="right">点击率:</td>
        <td height="30" align="left"><input type="text" class="inp noedit" name='arc_click'/></td>
      </tr>
      <tr>
        <td height="30" align="right">排序:</td>
        <td height="30" align="left"><input type="text" class="inp noedit" name='sort'/></td>
      </tr>
       <tr>
        <td height="30" align="right">是否推荐：</td>
        <td height="30" align="left"><input type="radio" name="is_tj" value="1"/>推荐
		<input type="radio" name="is_tj" value="0"/>不推荐</td>
      </tr> 
      <tr>
        <td height="30" align="right">是否显示：</td>
        <td height="30" align="left"><input type="radio" name="status" value="1"/>显示
    <input type="radio" name="status" value="0"/>不显示</td>
      </tr>    
	  <tr>
        <td height="30" align="right">&nbsp;</td>
        <td height="30" align="left"><input type="submit" value="保存"/>&nbsp;<input type="button" 

value="返回上一步" onClick="javascript:history.back()"/></td>
      </tr>
      <tr>
        <td height="30" colspan="2">&nbsp;</td>
      </tr>
    </table>
</form>
	</div>
</div>
</body>
</html>
<!--百度编辑器插件-->
<script type="text/javascript">
  
  UE.getEditor('content', {
    "initialFrameWidth" : "950",
    "initialFrameHeight" : '400',
    "maximumWords" : 30000,
  });
</script>